package cn.smile.bean.dto.basic;

import cn.smile.bean.dto.core.SysUserDTO;
import cn.smile.bean.entity.basic.ExpenseBill;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.time.LocalDateTime;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
public class ExpenseBillDTO extends ExpenseBill {
    @Serial
    private static final long serialVersionUID = 3617072624300722419L;

    /**
     * 会员号
     */
    private String memberNo;

    /**
     * 会员名
     */
    private String memberName;

    /**
     * 消费项目
     */
    private String itemName;

    /**
     * 精简账单时间
     */
    @JsonFormat(pattern = "MM-dd HH:mm", timezone = "GMT+8")
    private LocalDateTime simplifyBillTime;

    /**
     * 消费账单记录人名称
     */
    private String operateUserName;

    /**
     * 消费账单记录人对象
     */
    private SysUserDTO operateUser;

    /**
     * 账单基础项目集合
     */
    private List<BillBasicItemDTO> basicItemList;

    /**
     * 代金券名称
     */
    private String voucherName;
}
